package com.java46.util;

import com.java46.exception.MyException;
import org.junit.Test;

import java.lang.reflect.Array;
import java.util.ArrayList;

public class test {
    @Test
    public void test()  {
        String code="450";
        ArrayList<Integer> nums = null;
        try {
            nums = Util.strToint(code);
        } catch (MyException e) {
            e.printStackTrace();
            System.out.println(e.getErrorMsg());
        }
        for (Integer num: nums){
            System.out.println(num);
        }
    }









}
